#include"process.h"

char style[s_NUM]={'-','*','#','.','$'};

void process()
{
    int count =0;
    char bar[MUN];
    memset(bar,'\0',sizeof(bar));

    const char* arr = "|\\-/";
    while(count<=100)
    {
        printf("\033[42;34m[%-100s][%d%%][%c]\033[0m\r",bar,count,arr[count%4]);
        fflush(stdout);
        bar[count++] = style[N];
        usleep(50000);
    }

    printf("\n");
}
